package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.mapper.OrderMapper;
import com.bwie.pojo.Order;
import com.bwie.service.OrderService;
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService{

    @Autowired
    OrderMapper orderMapper;
    @Override
    public R getOrderList(PageInfoVo pageInfoVo) {
        Page<Order> page = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());
        Page<Order> orderPage = orderMapper.selectPage(page, null);
        return R.OK(orderPage);
    }
}
